﻿<UserControl x:Class="KTVConsole2.UI.UserControlSongPlayedDisplayByStar"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" xmlns:my="clr-namespace:KTVConsole2.UI" Loaded="UserControl_Loaded">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="400" />
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
            <ListView Name="lvStarList" SelectionChanged="lvStarList_SelectionChanged" Grid.Column="0">
                <ListView.View>
                    <GridView>
                        <GridViewColumn Header="歌星" DisplayMemberBinding="{Binding Path=Song.Star}"/>
                        <GridViewColumn Header="点播次数" DisplayMemberBinding="{Binding Path=Frequency}"/>
                        <GridViewColumn Header="操作">
                            <GridViewColumn.CellTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal">
                                        <Button Content="全点" Tag="{Binding}" Name="PlayAll" Click="PlayAll_Click"/>
                                        <Button Content="全删" Tag="{Binding}" Name="DeleteAll" Click="DeleteAll_Click"/>
                                </StackPanel>
                                </DataTemplate>
                            </GridViewColumn.CellTemplate>
                        </GridViewColumn>
                    </GridView>
                </ListView.View>
            </ListView>
        <my:UserControlSongPlayedDisplayBySong Grid.Column="1" x:Name="userControlSongPlayedDisplayBySong1" Margin="12,0,0,0" Grid.ColumnSpan="2"/>
    </Grid>
</UserControl>
